package com.ruibang.glass.purchase.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.purchase.domain.req.PurchaseReturnReq;
import com.ruibang.glass.purchase.entity.PurchaseReturns;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 采购退货表，用于记录采购退货的相关信息 Mapper 接口
 * </p>
 *
 * @author mameng
 * @since 2024-03-28
 */
@Mapper
public interface PurchaseReturnsMapper extends BaseMapper<PurchaseReturns> {


    IPage<PurchaseReturns> getPage(Page<PurchaseReturns> page, @Param("purchaseReturnReq") PurchaseReturnReq purchaseReturnReq);

    String getArrivalOrderNumber();

    PurchaseReturns getPurchaseReturns(@Param("number") String number, @Param("itemCode") String itemCode);

    String GetWareId(@Param("warehouseName") String warehouseName);



}
